<template>
  <InvoiceForm :invoiceId="invoiceId"></InvoiceForm>
</template>
<script setup name="EditInvoice">
import { useRoute, useRouter } from 'vue-router'
import InvoiceForm from '@/views/financialManage/invoiceManage/modules/invoiceForm'
const route = useRoute()
let invoiceId = ref(null)
watch(
  () => route.query.invoiceId,
  val => {
    if (route.query.invoiceId) {
      invoiceId.value = route.query.invoiceId
    }
  },
  {
    immediate: true
  }
)
</script>
